]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Remove the tray left timeout when showing a new notification
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 6 Mar 2013 08:30:17 +0000 (03:30 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 12 Mar 2013 15:58:53 +0000 (11:58 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=695659

js/ui/messageTray.js

index bdb33d9b0eea136ae4318ce3521ef6f5e8b1a017..a8904807691be892c3c8139a4613a472898e32ed 100644 (file)
@@ -2539,6 +2539,14 @@ const MessageTray = new Lang.Class({
             this._notificationUnfocusedId = 0;
         }
 
+        this._useLongerTrayLeftTimeout = false;
+        if (this._trayLeftTimeoutId) {
+            Mainloop.source_remove(this._trayLeftTimeoutId);
+            this._trayLeftTimeoutId = 0;
+            this._trayLeftMouseX = -1;
+            this._trayLeftMouseY = -1;
+        }
+
         if (this._notificationRemoved) {
             Tweener.removeTweens(this._notificationWidget);
             this._notificationWidget.y = this.actor.height;